//#include "avr/iom168.h"

#include "avr/io.h"

//#include <intrinsics.h>
//#include <pgmspace.h>
#include <string.h>
 
#define u8 unsigned char
#define u16 unsigned int
#define nop() asm volatile ("nop")


#define sbi(reg,bit)  (reg |= (1<<bit))   //<! set bit in port
#define cbi(reg,bit)  (reg &= ~(1<<bit))  //<! clear bit in port
#define sbr(reg,bit)  (reg |= (1<<bit))   //<! set bit in port
#define cbr(reg,bit)  (reg &= ~(1<<bit))  //<! clear bit in port

#define XTALL			8.0


